#include "zoomer.h"


//-----------------------------------------------------------------
//zoom
//-----------------------------------------------------------------

Zoomer::Zoomer(int xAxis, int yAxis, QwtPlotCanvas *canvas):QwtPlotZoomer(xAxis, yAxis, canvas)
{
    setSelectionFlags(QwtPicker::DragSelection | QwtPicker::CornerToCorner);
    setTrackerMode(QwtPicker::AlwaysOff);
    setRubberBand(QwtPicker::NoRubberBand);
#if QT_VERSION < 0x040000
    setMousePattern(QwtEventPattern::MouseSelect2,
        Qt::RightButton, Qt::ControlButton);
#else
    setMousePattern(QwtEventPattern::MouseSelect2,
        Qt::RightButton, Qt::ControlModifier);
#endif
    setMousePattern(QwtEventPattern::MouseSelect3,
        Qt::RightButton);
}
